package com.yiyang;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;


//springboot的入口注解
@SpringBootApplication

@MapperScan(basePackages = "com.yiyang.mapper")
//这个注解也可以直接写在mapper接口上，注解为mapper
public class AppStart {
    public static void main(String[] args) {
        SpringApplication.run(AppStart.class,args);
    }
}
